<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet" type="text/css" href="http://localhost/YouHuoShop/Static/Index/style/memberTop.css"/>
	<link rel="stylesheet" type="text/css" href="http://localhost/YouHuoShop/Static/Index/style/confirmOrder.css"/>
	<link rel="stylesheet" type="text/css" href="http://localhost/YouHuoShop/Static/Index/style/foot.css"/>
	<script src="http://localhost/YouHuoShop/Static/Index/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script class="resources library" src="http://localhost/YouHuoShop/Static/Index/js/area.js" type="text/javascript"></script>
	<script src="http://localhost/YouHuoShop/Static/Index/js/confirmOrder.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<!----------------顶部区域开始------------------>
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>

<link rel="stylesheet" type="text/css" href="http://localhost/YouHuoShop/Static/Index/style/memberTop.css"/>
<!----------------顶部区域开始------------------>
<div id="topBox">
	<div id="top">
		<div class="logo">
			<a href="<?php echo U('Index/index');?>"><img src="http://localhost/YouHuoShop/Static/Index/images/logo_e.png" alt="" /></a>
		</div>
		<p>
			    <?php if(isset($hd['session']['uid'])&&isset($hd['session']['uname'])){ ?>
				<a href="">Hi~<?php echo $hd['session']['uname'];?></a>
				<a class="member" href="<?php echo U('Member/out');?>">退出</a>
			<?php }else{ ?>
				<a class="member" href="<?php echo U('Member/login');?>">[请登录 ]</a>
				|
				<a class="member" href="<?php echo U('Member/register');?>">[免费注册] </a>
			<?php } ?>
			<a href="" class="mar">MY有货</a>
			<a href="" class="mar">订单中心</a>
			<a href="" class="mar">帮助中心</a>
			<span class="tel"><img src="http://localhost/YouHuoShop/Static/Index/images/phone.png" alt="" />400-889-9646</span>
		</p>
	</div>
</div>	
<!----------------顶部区域结束------------------>	

<!----------------顶部区域结束------------------>	

<!----------------购物进度区域开始------------------>
<div id="carPace">
	<!--左侧图标-->
	<p class="left"></p>

	<!--右侧进度条-->
	<ul>
		<li >查看购物车</li>
		<li class="act">&nbsp;&nbsp;填写订单</li>
		<li class="last">付款，完成购买</li>
	</ul>
</div>	
<!----------------购物进度区域结束------------------>

<!----------------核对信息区域开始------------------>
<div id="authOrder">
	<div class="title">
		<p>请填写并核对以下信息</p>
		<a href="<?php echo U('Car/index');?>"></a>
	</div>
	<!--收货地址-->
	<div class="address">
		<p class="text">收货地址：<a href="">[不保存并关闭]</a></p>
		<ul>
			<li class="userAddress checked addressEvent">
				<div class="left">
					<input type="radio" value="" checked id="address1" name="address"/>
					<label for="address1">
						<strong>张成龙1</strong>
						<span>1北京市北京市朝阳区后盾 18609801136</span>
						<a class="auto" href="">设为默认地址</a>
					</label>
				</div>
				<div class="change ">
					  <a class="edit"  href="">[修改]</a>
					  <a class="del" href="">[删除]</a>
				</div>
			</li>
			<li class="userAddress addressEvent">
				<div class="left">
					<input type="radio" value="" id="address2" name="address"/>
					<label for="address2">
						<strong>张成龙2</strong>
						<span>2北京市北京市朝阳区后盾 18609801136</span>
						<a class="auto" href="">设为默认地址</a>
					</label>
				</div>
				<div class="change">
					  <a class="edit"  href="">[修改]</a>
					  <a class="del" href="">[删除]</a>
				</div>
			</li>
			<li class="addAddress addressEvent">
				<input class="add" type="radio" id="newAddress" value="" name="address"/>
				<label for="newAddress">使用新地址</label>
				<form action="" method="post" id="newAddressForm">
					<table border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td class="td1"><span>*</span>收货人姓名：</td>
							<td class="td2"><input type="text" name="takerName" id="takerName" />
								<span class="warning">请填写您的真实姓名，最多5个汉字</span>
							</td>
						</tr>
						<tr>
							<td class="td1"><span>*</span> 省市： </td>
							<td class="select selectT">
								<select id="s_province" name="s_province"></select>
								<select id="s_city" name="s_city" ></select>
								<select id="s_county" name="s_county"></select>
								<input type="text" id="userWrite"/>
								<span class="warning">标'*'的为支持加急送的地区，请输入收货的详细地址</span>
							</td>
						</tr>
						<tr>
							<td class="td1"><span>*</span>手机号码：</td>
							<td class="td2">
								<input type="text" name="tekerPhone"/>
								<span class="warning">填写正确手机号便于接收发货和收货通知</span>
							</td>
						</tr>
						<tr>
							<td class="td1">电子邮件：</td>
							<td class="td2">
								<input type="text" />
								<span class="warning">用来接收订单提醒邮件，便于您及时了解订单状态</span>
							</td>
						</tr>
						<tr class="">
							<td class="td1">邮编：</td>
							<td class="td2">
								<input type="text" />
								<span class="warning">请填写准确的邮编，以确保商品尽快送达</span>
							</td>
						</tr>
					</table>
					<input type="submit" class="submit" value="保存并送到这个地址"/>
				</form>
			</li>
		</ul>
	</div>
	<!--支付方式-->
	<div class="pay">
		<p class="text">支付及送货时间：<a class="changeBtn" href="javascript:;">[修改]</a></p>
		<div class="content">
			<p>付款方式： <span class="payWay">在线支付</span></p>
			<p>送货时间：<span class="giveTime">工作日、双休日和节假日均送货</span></p>
		</div>
		<div class="change">
			<div class="payWay">
				<p class="changeT">支付方式：</p>
				<p>
					<input name="pay" type="radio" checked id="zfb"/>
					<label for="zfb">在线支付</label>（推荐）
				</p>
				<p>
					<input name="pay"  type="radio" id="hdfk"/>
					<label for="hdfk">货到付款</label>
					<span>注：订单中有限量商品、预售商品、化妆品或者订单金额超过10000元不可以选择货到付款。</span>
				</p>
			</div>
			<div class="giveTime">
				<p class="changeT">送货时间：</p>
				<p>
					<input type="radio" name="giveTime" id="gzrs" value="" />
					<label for="gzrs">只工作日送货（双休日、节假日不送）</label>
				</p>
				<p>
					<input type="radio" name="giveTime" id="jsh" value="" checked />
					<label for="jsh">工作日、双休日和节假日均送货</label>
				</p>
				<p>
					<input type="radio" name="giveTime" id="zsxs" value="" />
					<label for="zsxs">只双休日、节假日送货（工作时间不送货）</label>
				</p>
				<span>声明：我们会努力按照您指定的时间配送，但因为天气、交通等各类因素影响，您的订单有可能会有延误现象，敬请谅解！</span>
			</div>
			<p class="sure">确定</p>
		</div>
	</div>
	<div class="express">
		<p class="text">选择快递：</p>
		<p>
			<input type="radio" checked	 name="freight" id="ptkd" value="" />
			<label for="ptkd"><span>普通快递</span>：　运费 ￥0.00</label>
		</p>
		<p>
			<input type="radio" name="freight" id="sfsh" value="" />
			<label for="sfsh"><span>顺丰速运</span>：　运费 ￥5.00　(仅支持顺丰可配送的地区)</label>
		</p>
		<span class="warning">注：配送会由于天气，交通等不可抗拒的客观因素造成您收货时间延迟，请您知悉。</span>
	</div>
</div>	
<!----------------核对信息区域结束------------------>	

<!----------------购物车内容区域开始------------------>
<div id="carBody">
	<table class="carHead" border="0" cellspacing="0" cellpadding="0">
		<tr class="tr tr1">
			<th class="th1">商品信息</th>
			<th class="th2">单价（元）</th>
			<th class="th3">返YOHO币</th>
			<th class="th4">数量</th>
			<th class="th5">小计（元）</th>
		</tr>
		<?php foreach ($orderData['goods'] as $k=>$g){?>
			<tr class="tr goods">
				<td class="th1">
					<img src="http://localhost/YouHuoShop/<?php echo $g['thumb'];?>" alt="" />
					<a href=""><?php echo $g['name'];?></a>
					<p>
						<?php foreach ($g['options'] as $ok=>$o){?>
							<span><?php echo $ok;?>：<?php echo $o;?></span>
						<?php }?>
					</p>
				</td>
				<td class="th2">
					<span>￥<?php echo number_format($g['price'],2,'.','');?> </span>
				</td>
				<td class="th3">
					0
				</td>
				<td class="th4">
					<span><?php echo $g['num'];?></span>
					<!--<p>余量有限</p>-->
				</td>
				<td class="th5">
					￥<?php echo number_format($g['total'],2,'.',',');?> 
				</td>
			</tr>
		<?php }?>
	</table>
</div>
<!----------------购物车内容区域结束------------------>	

<!----------------结算区域开始------------------>	
<div id="result">
	<p>您需要实际支付金额：<span>￥<?php echo number_format($orderData['total'],2,'.',',');?></span>元</p>
	<form action="<?php echo U('Order/index');?>" method="post">
		<input type="hidden" name="consignee" value="" id="consignee" />
		<input type="hidden" name="address" value="" id="address"/>
		<input type="hidden" name="express" id="express" value="" />
		<input type="hidden" name="pay_way" id="payWay" value="" />
		<input type="hidden" name="give_time" id="giveTime" value="" />
		<input type="submit" class="sub" value="去付款"/>
	</form>
</div>	
<!----------------结算区域结束------------------>
	
<!---------------底部区域开始------------>	
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>

<link rel="stylesheet" type="text/css" href="http://localhost/YouHuoShop/Static/Index/style/foot.css"/>
	
<!---------------底部区域开始------------>	
<div id="footBox">
	<div class="foot">
		<div class="top">
			<p class="bz">	
				<span class="red">100%</span>
				<span class="white">品牌授权正品</span>
			</p>
			<p class="sh">
				<span class="red">7天</span>
				<span class="white">无理由退换货</span>
			</p>
			<p class="dh">
				<span class="white">客服电话</span>
				<span class="red">400-889-9646</span>
				<span class="white">09:00-22:30(周一至周日)</span>
			</p>
		</div>
		<div class="list">
			<ul>
				<li ><a class="title" href="">新手指南</a></li>
				<li><a href="">新用户注册</a></li>
				<li><a href="">会员登录</a></li>
				<li><a href="">订购流程</a></li>
				<li><a href="">交易须知</a></li>
			</ul>
			<ul>
				<li ><a class="title" href="">付款方式</a></li>
				<li><a href="">支付方式</a></li>
				<li><a href="">常见支付问题</a></li>
				<li><a href="">如何办理退款</a></li>
				<li><a href="">发票制度说明</a></li>
			</ul>
			<ul>
				<li ><a class="title" href="">配送方式</a></li>
				<li><a href="">配送时间及范围</a></li>
				<li><a href="">订单的拆分</a></li>
				<li><a href="">商品验收与签收</a></li>
			</ul>
			<ul>
				<li ><a class="title" href="">售后服务</a></li>
				<li><a href="">如何办理退换货</a></li>
				<li><a href="">退换货政策</a></li>
				<li><a href="">在线客服</a></li>
			</ul>
			
			<ul>
				<li ><a class="title" href="">帮助中心</a></li>
				<li><a href="">找回密码</a></li>
				<li><a href="">常见问题</a></li>
				<li><a href="">谨防诈骗</a></li>
			</ul>
			<ul>
				<li ><a class="title" href="">优惠政策</a></li>
				<li><a href="">VIP会员制度说明</a></li>
				<li><a href="">YOHO币</a></li>
				<li><a href="">优惠券</a></li>
				<li><a href="">兑换礼品卡</a></li>
			</ul>
		</div>
		
		<div class="bottom">
			<div class="left">
				<img src="http://localhost/YouHuoShop/Static/Index/images/credit-flag3.png" alt="" />
				<img src="http://localhost/YouHuoShop/Static/Index/images/isc2.png" alt="" />
			</div>
			<div class="right">
				<p class="con">
					<a href="">返回首页</a>
					<span>|</span>
					<a href="">YOHO!有货</a>
					<span>|</span>
					<a href="">新力传媒</a>
					<span>|</span>
					<a href="">联系我们</a>
					<span>|</span>
					<a href="">商家入驻</a>
					<span>|</span>
					<a href="">隐私条款</a>
					<span>|</span>
					<a href="">友情链接</a>
				</p>
				<p>CopyRight © 2007-2016 南京新与力文化传播有限公司 苏ICP备09011225号 NewPower Co. 版权所有 经营许可证编号：苏B2-20120395
</p>
			</div>
		</div>
		
	</div>
</div>	
<!---------------底部区域结束------------>	
<!---------------底部区域结束------------>	
</body>
</html>
